package com.jmx.tomcat.utils;

/**
 * @author: jmx
 * @date: 2023-08-11 19:35
 * @version: 1.0
 */
public class WebUtil {
    public static int strToInt(String str){
        try {
            return Integer.parseInt(str);
        } catch (NumberFormatException e) {
            return 0;
        }
    }
}
